package com.faeple.log.dao.sqlmap;

import java.util.HashMap;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.faeple.log.dao.LogDao;
import com.faeple.user.entity.UserDto;

@Repository
public class SqlMapLogDao implements LogDao {

	@Autowired
	private SqlSession sqlSession;
	
	@Override
	public void recordLoginLog(HashMap<String, String> map) {
		sqlSession.insert("LogMapper.recordLoginLog", map);
	}

	@Override
	public void recordLogoutLog(HashMap<String, String> map) {
		sqlSession.insert("LogMapper.recordLogoutLog", map);
	}

}
